package com.shen.JUC.Funiterface;

import java.util.function.Predicate;

public class PredicateTest {
    public static void main(String[] args) {
        //断定型接口：有一个输入参数，返回只能是布尔值
        Predicate<String> predicate = (String o)-> { return o.isEmpty(); };
        System.out.println(predicate.test(""));
    }
}
